home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / SashP.h.z / SashP.h
C/C++ Source or Header  |  2002-10-15  |  3KB  |  111 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /*   $XConsortium: SashP.h /main/12 1995/07/13 17:52:08 drk $ */
  12. /*
  13. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  14. /*
  15. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  16. /*
  17. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  18. /*
  19.  *  SashP.h - Private definitions for Sash widget (Used by VPane Widget)
  20.  *
  21.  */
  22.  
  23. #ifndef _XmSashP_h
  24. #define _XmSashP_h
  25.  
  26. #include <Xm/PrimitiveP.h>
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. /*****************************************************************************
  33.  *
  34.  * Sash Widget Private Data
  35.  *
  36.  *****************************************************************************/
  37.  
  38. /* New fields for the Sash widget class record */
  39. typedef struct {
  40.    XtPointer extension;   /* Pointer to extension record */
  41.    
  42. #ifdef _SGIMOTIF
  43.    XtPointer    _SG_vendorExtension;
  44. #endif
  45.  
  46. } XmSashClassPart;
  47.  
  48. /* Full Class record declaration */
  49. typedef struct _XmSashClassRec {
  50.     CoreClassPart         core_class;
  51.     XmPrimitiveClassPart  primitive_class;
  52.     XmSashClassPart    sash_class;
  53. } XmSashClassRec;
  54.  
  55. typedef struct _XmSashClassRec *XmSashWidgetClass;
  56.  
  57. externalref XmSashClassRec xmSashClassRec;
  58.  
  59. /* New fields for the Sash widget record */
  60. typedef struct {
  61.   XtCallbackList sash_action;
  62.   Boolean has_focus;
  63.   
  64. #ifdef _SGIMOTIF
  65.   XtPointer    _SG_vendorExtension;
  66. #endif
  67.  
  68. } XmSashPart;
  69.  
  70. /*****************************************************************************
  71.  *
  72.  * Full instance record declaration
  73.  *
  74.  ****************************************************************************/
  75.  
  76. typedef struct _XmSashRec {
  77.    CorePart         core;
  78.    XmPrimitivePart  primitive;
  79.    XmSashPart       sash;
  80. } XmSashRec;
  81.  
  82. typedef struct _XmSashRec      *XmSashWidget;
  83.  
  84. typedef struct {
  85.   XEvent *event;        /* the event causing the SashAction */
  86.   String *params;        /* the TranslationTable params */
  87.   Cardinal num_params;        /* count of params */
  88. } SashCallDataRec, *SashCallData;
  89.  
  90. /* Class Record Constant */
  91.  
  92. externalref WidgetClass xmSashWidgetClass;
  93.  
  94. #ifndef XmIsSash
  95. #define XmIsSash(w)    XtIsSubclass(w, xmSashWidgetClass)
  96. #endif /* XmIsSash */
  97.  
  98.  
  99. /********    Private Function Declarations    ********/
  100.  
  101.  
  102. /********    End Private Function Declarations    ********/
  103.  
  104.  
  105. #ifdef __cplusplus
  106. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  107. #endif
  108.  
  109. #endif /* _XmSashP_h */
  110. /* DON'T ADD ANYTHING AFTER THIS #endif */
  111.